package com.zimmor.service;

import com.zimmor.util.WebSocketUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:zimmor
 * @Date: 2021/3/30 9:24
 * @Description 业务逻辑类
 * @version: 1.0.0
 */
@Service
public class WebSocketService {
    @Autowired
    private WebSocketUtil webSocketUtil;

    public void sendMessage(String message, String userId) {
       webSocketUtil.sendToOther(userId, message);
    }
}
